#include "client.h"



Client::Client(const int port, const char *transitIp, const int transitPort, const char *peerMacAddr, const char *ownMacAddr)
	:Communicate(port, transitIp, transitPort, peerMacAddr, ownMacAddr)
{
	std::cout << "prepare to loginTransit !" << std::endl;
	getchar();
	loginTransit();
	
	std::cout << "prepare to getPeerNetAddr !" << std::endl;
	getchar();
	getPeerNetAddr();

	std::cout << "prepare to penetrate !" << std::endl;
	getchar();
	penetrate();

	std::cout << "prepare to sendNormal 1 !" << std::endl;
	getchar();
	sendNormal();

	std::cout << "prepare to sendNormal 2 !" << std::endl;
	getchar();
	sendNormal();

	std::cout << "prepare to sendNormal 3 !" << std::endl;
	getchar();
	sendNormal();

	std::cout << "prepare to sendNormal 4 !" << std::endl;
	getchar();
	sendNormal();

	std::cout << "prepare to sendNormal 5 !" << std::endl;
	getchar();
	sendNormal();
}

Client::~Client()
{

}

